home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970929-19971216
/
000264_news@newsmaster….columbia.edu _Sat Nov 15 12:19:14 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-12-15
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA27816
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 15 Nov 1997 12:19:14 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA13211
for kermit.misc@watsun; Sat, 15 Nov 1997 12:19:14 -0500 (EST)
Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with scripting kermit
Message-ID: <0$k2Rz1fk$EP@cc.usu.edu>
Date: 15 Nov 97 09:56:15 MDT
References: <64j0bn$7s9$1@clem.mscd.edu>
Organization: Utah State University
Lines: 46
Xref: news.columbia.edu comp.protocols.kermit.misc:8049
In article <64j0bn$7s9$1@clem.mscd.edu>, NICE KERRY <nice@mscd.edu> writes:
> Hi,
> I am having trouble getting getting kermit scripting to work. The thing
> that I would like to do is have a script run by crontab to dial up
> this account, download some files, and then delete them. It seems like
> I can do this stuff when I am at the keyboard, but it seems to stick
> when it is in a script.
>
> Here is the script that sort of works:
>
> set modem hayes
> set line /dev/modem
> set speed 19200
> set parity none
> set dial timeout 60
> dial XXX-XXXX\13
> input 60 CONNECT
> pause 1
>
> ;connect
> output \0
> output " "\13
Did you mean a space here? If so { } would be a cleaner approach
> output \13
> output 1\13
> output nice\13
> output XXXXXXX\13
>
> output cd mail \13
> output ls -l\13
> output logout\13
> output 20\13
>
What's likely the problem is the sequence of OUTPUT statments
blasts their strings at the host with no time delay. It may very well
be the host is not prepared to hear that material until later, as it
progresses through the login steps. Thus you have two standard options:
either insert PAUSE's, or better do INPUT commands to seek host responses
step by step. In other words, at each step wait for the host to indicate
it is ready for that string. Looking for the host prompt string is one
quick pattern to wait upon.
These items and many more, full illustrated, are in the user's
manual for C Kermit. Just type HELP at the CKermit prompt to obtain the
book's name and ordering information.
Joe D.